// 2018/12/21

let invocation = Promise.resolve("a");

invocation.then(str => {
    console.log(str);
    return Promise.resolve(str);
}).then(str => {
    console.log(str);
    return str;
}).then(str => {
    console.log(str);
}).then(str => {
    console.log(str);
});